<?php
include('../../config.php');
/**
 * Created by PhpStorm.
 * User: 明哲
 * Date: 2016/4/27
 * Time: 13:50
 */
if($_GET['startTime'] !='' && $_GET['endTime']!=''){
    $startTime =  $_GET['startTime'];
    $endTime =  $_GET['endTime'];
    $rows=$mysql->query("select * from `product` WHERE `time` BETWEEN '{$startTime}' and '{$endTime}'  order by `submit_date` DESC");
//    $rows = json_decode($rows,true);
    $rows = json_encode($rows);
    echo $rows;

}